import request from '@/utils/request'

export const login = (data) => {
  return request.post('/api/user-service/user/login', data)
}

export const getUserInfo = (id) => {
  return request.get(`/api/user-service/user/${id}`)
}

export const getPartnerCount = () => {
  return request.get('/api/user-service/partner/count')
}

export const searchUser = (params) => {
  return request.get(`/api/user-service/user/search`, {
    params
  })
}
